import App from './App';
import uviewPlus from '@/uni_modules/uview-plus';
import CommonNavbar from '@/components/CommonNavbar';
// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';
Vue.use(uView);
// 如此配置即可
uni.$u.config.unit = 'rpx';
Vue.config.productionTip = false;

App.mpType = 'app';
const app = new Vue({
  ...App
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';
export function createApp() {
  const app = createSSRApp(App);
  app.use(uviewPlus);
  app.component('CommonNavbar', CommonNavbar);
  console.log('systemInfo', uni.getSystemInfoSync());
  app.config.globalProperties.$systemInfo = uni.getSystemInfoSync();

  return {
    app
  };
}
// #endif
